import request from '@/utils/request';

/**
 * GET 查询签约计划版本展示
 * @pathParam apiVersion true
 * @queryParam versionId true
 * @queryParam year false
 */
export function getSignPlanVersionUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 创建签约计划版本
 * @pathParam apiVersion true
 * @queryParam projectFid true
 * @queryParam versionType true
 */
export function createSignPlanVersionUsingPOST({ params, data }) {
  return request('signPlan/signPlanVersion', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * PUT 保存产品构成的签约计划
 * @pathParam apiVersion true
 * @bodyParam signPlanDetailParam true
 */
export function saveProductSignPlanUsingPUT({ params, data }) {
  return request('signPlan/signPlanVersion', {
    method: 'PUT',
    params,
    data,
  });
}

/**
 * DELETE 删除签约计划版本
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function deleteSignPlanVersionUsingDELETE({ params, data }) {
  return request('signPlan/signPlanVersion', {
    method: 'DELETE',
    params,
    data,
  });
}

/**
 * GET 查询签约计划审批预览PC
 * @pathParam apiVersion true
 * @queryParam billId false
 * @queryParam projectId false
 */
export function getApprovalPreviewUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/approvalPreview', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询签约计划审批预览App
 * @pathParam apiVersion true
 * @queryParam billId false
 * @queryParam projectId false
 */
export function getApprovalPreviewAppUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/approvalPreviewApp', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 审批校验
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function approvedCheckUsingGET_1({ params, data }) {
  return request('signPlan/signPlanVersion/approvedCheck', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 设置考核版
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function settingsAssessmentVersionUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/assessmentVersion', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 异常创建签约计划版本
 * @pathParam apiVersion true
 * @queryParam projectFid true
 * @queryParam versionType true
 */
export function exceptionCreateSignPlanVersionUsingPOST({ params, data }) {
  return request('signPlan/signPlanVersion/exceptionCreateSignPlanVersion', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 查询分期最新版本
 * @pathParam apiVersion true
 * @queryParam projectFid true
 */
export function getNewVersionTypeUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/newVersionType', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 导出全盘签约计划报表
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function overallSignPlanExportUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/overallSignPlanExport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询全盘签约
 * @pathParam apiVersion true
 * @queryParam code false
 * @queryParam projectId true
 * @queryParam year false
 */
export function getOverallSignPlanVersionUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/overallSignPlanVersion', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询门户代办
 * @pathParam apiVersion true
 * @queryParam id true
 */
export function getPortalTodoUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/portalTodo', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询产品构成列表
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function getProductListUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/productList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 查询产品构成的签约计划
 * @pathParam apiVersion true
 * @bodyParam productSignPlanParam true
 */
export function getProductSignPlanUsingPOST({ params, data }) {
  return request('signPlan/signPlanVersion/productSignPlan', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 查询全盘签约概览
 * @pathParam apiVersion true
 * @queryParam month true
 * @queryParam versionId true
 * @queryParam year true
 */
export function getProjectProductListUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/projectProductList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动消除签约代办
 * @pathParam apiVersion true
 * @queryParam id true
 * @queryParam operatorType true
 */
export function deleteTodoInfoUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/refreshDeleteTodoInfo', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动刷新签约全盘报表缓存
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function refreshOverallSignPlanExportUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/refreshOverallSignPlanExport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动刷新实际签约数据
 * @pathParam apiVersion true
 * @queryParam versionId true
 * @queryParam yearMonth true
 */
export function refreshSignDataUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/refreshSignData', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动发送签约代办
 * @pathParam apiVersion true
 * @queryParam supplyId true
 */
export function signNoticeDisposeUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/refreshSignNoticeDispose', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询签约版本全路径名称与来源版本全路径名称
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function getSignFullPathUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/signFullPath', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询签约版本全路径名称与来源版本全路径名称列表
 * @pathParam apiVersion true
 * @queryParam projectFid true
 * @queryParam versionType true
 */
export function getSignFullPathListUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/signFullPathList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 导出签约计划版本报表
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function signPlanVersionExportUsingGET({ params, data }) {
  return request('signPlan/signPlanVersion/signPlanVersionExport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 提交到OA审批
 * @pathParam apiVersion true
 * @bodyParam signPlanOaParam false
 */
export function submitToOAUsingPOST_1({ params, data }) {
  return request('signPlan/signPlanVersion/submitToOA', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * 2021-05-21手动添加接口方法-公共管理api
 * GET 获取预算版本标签
 * @pathParam apiVersion true
 */
export function commonBudgetVersion({ params, data }) {
  return request('common/budgetVersion', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * 2021-05-21手动添加接口方法-公共管理api
 * GET 创建签约、回款版本检验
 * @pathParam apiVersion true
 */
export function commonCreateBudgetVerify({ params, data }) {
  return request('common/createBudgetVerify', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * 2021-05-21手动添加接口方法-签约计划api
 * GET 手动复制一版为预算版本
 * @pathParam apiVersion true
 * @pathParam versionId true
 */
export function signPlanVersionCopyBudgetVersion({ params, data }) {
  return request('signPlan/signPlanVersion/copyBudgetVersion', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * 2021-05-21手动添加接口方法-签约计划api
 * GET 手动复制版本
 * @pathParam apiVersion true
 * @pathParam versionId true
 */
export function signPlanVersionCopySignPlanVersion({ params, data }) {
  return request('signPlan/signPlanVersion/copySignPlanVersion', {
    method: 'GET',
    params,
    data,
  });
}
